
package com.huaweicloud.haydn.delivercore.agent.dto.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;

import lombok.Data;

/**
 * 表内容一致性检测结果
 *
 * @since 2023-03-23
 */
@Data
@HeadRowHeight(60)
public class DbTableContentConsistencyExcelDto {

    @ExcelProperty(value = {"monitoring_object_uuid"}, index = 0)
    private String monitoringObjectUuid;

    @ExcelProperty(value = {"target_db_name"}, index = 1)
    private String targetDbName;

    @ExcelProperty(value = {"target_schema_name"}, index = 2)
    private String targetSchemaName;

    @ExcelProperty(value = {"target_table_name"}, index = 3)
    private String targetTableName;

    @ExcelProperty(value = {"source_db_name"}, index = 4)
    private String sourceDbName;

    @ExcelProperty(value = {"source_schema_name"}, index = 5)
    private String sourceSchemaName;

    @ExcelProperty(value = {"source_table_name"}, index = 6)
    private String sourceTableName;

    // 本轮次实际抽取数据量
    @ExcelProperty(value = {"batch_actual_size"}, index = 7)
    private int batchActualSize;

    // 本轮次在目的端没有找到的源端数据行数
    @ExcelProperty(value = {"not_found_data_size"}, index = 8)
    private int notFoundDataSize;

    // 表内容一致性对比的轮次
    @ExcelProperty(value = {"round"}, index = 9)
    private int round;
}